package com.webservice.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

public class App {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("cxf.xml");
        ServiceInterface cxfClientProxy = applicationContext.getBean("cxfClientProxy", ServiceInterface.class);
        System.out.println(cxfClientProxy.sayHello());
    }
}
